from django.contrib import admin
from django.conf.urls.defaults import *
from PSM.PSMDatabase import views
from django.contrib import admin
import settings
admin.autodiscover()

urlpatterns = patterns('',
    # Set path for image use on web page.
    (r'^media/(?P<path>.*)$', 'django.views.static.serve',
	{'document_root': settings.MEDIA_ROOT}),
    #==================================#

    ('^$','PSM.views.main'),
    (r'^admin/', include(admin.site.urls)), 
    (r'^teacher_form/$', views.teacher_form), 
    (r'^teacher/$', views.teacher),
    (r'^teacher/add_student_form/$', views.addStudent_form),
    (r'^teacher/add_all_form/$', views.addAllScore_form),
    (r'^teacher/add_lab_form/$', views.addLabScore_form),
    (r'^teacher/add_mid_form/$', views.addMidScore_form),
    (r'^teacher/add_final_form/$', views.addFinalScore_form),
    (r'^teacher/calculate_grade/$', views.calculateGrade),
    (r'^teacher/show_grade/$', views.showGrade),
    (r'^teacher/upload_file/$', views.uploadFile),
    (r'^teacher/send_grade/$', views.sendGrade),
    (r'^teacher/logout/$', views.logout_view),













    # Examples:
    # url(r'^$', 'PSM.views.home', name='home'),
    # url(r'^PSM/', include('PSM.foo.urls')),

    # Uncomment the admin/doc line below to enable admin documentation:
    # url(r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
    # url(r'^admin/', include(admin.site.urls)),
)
